package com.quikin.persistence.jpa.util;

import com.von.platform.dk.util.PDKRuntimeException;

public class QuikinPLException extends PDKRuntimeException {

    /**
     * 
     */
    private static final long serialVersionUID = -1618490546487597553L;

    private static final String _QUIKIN_PL_SYSTEMID = "QUIKIN_PL";
    public static final String DEFAULT_BUNDLE_NAME = "resource.i18n.QuikinPLError";
    
    public QuikinPLException(QuikinPLErrorCode errCode, Object[] parameters, Throwable cause) {
        super(_QUIKIN_PL_SYSTEMID,errCode.toString(),errCode.getSeverity().toString(),parameters, cause);
    }
    
    public QuikinPLException(QuikinPLErrorCode errCode, Object[] parameters) {
        this(errCode, parameters, null);
    }
    
    public QuikinPLException(QuikinPLErrorCode errCode) {
        this(errCode, null, null);
    }

    @Override
    protected String getDefaultBundleName() {
        return DEFAULT_BUNDLE_NAME;
    }

    
}
